package com.seanzx.dp.common;

public enum ColumnType {
    TINYINT,
    BIT,
    BOOL,
    BOOLEAN,
    SMALLINT,
    MEDIUMINT,
    INT,
    UNSIGNED_INT,
    BIGINT,
    CHAR,
    VARCHAR;

    public static ColumnType from(String type) {
        for (ColumnType value : ColumnType.values()) {
            if (value.toString().equals(type)) {
                return value;
            }
        }
        return null;
    }
}
